home *** CD-ROM | disk | FTP | other *** search
- Path: pub.news.uk.psi.net!usenet
- From: ben@alien.co.uk (Ben Rogers)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: WordWorth5 ARexx
- Date: 29 Feb 1996 16:52:08 GMT
- Organization: PSINet UK Public Usenet Site
- Message-ID: <1842.6633T968T604@alien.co.uk>
- References: <1598.6626T963T1270@sn.no>
- NNTP-Posting-Host: amiga1200.alien.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- Hi Christopher Naas,
-
- >Anyone know a better way of obtaining a list of installed fonts for
- >WordWorth5?
-
- I've made a few alterations to your script, which might make it a bit faster,
- and the main change is that it uses the actual font list that Wordworth 5 uses
- at start-up.
-
- ------ Snip Here ------
- /* Make list of all fonts in WordWorth 5 */
- /* 22.02.96 by Christopher Naas */
- /* 29.02.96 Amendments by Ben Rogers */
- /* */
- /* Do with it as you please, just don't claim credit or */
- /* make any money from it :) */
-
- Options Results
-
- /* Use the Wordworth 5 font list */
- Address Command "Sort WwFonts/UFST/FontList To T:WwFontList"
-
- /* This makes sure you use the new window */
- New PORTNAME FontList
- Address FontList
-
- /* Get a font and save it and it's size */
- GetFont
- TitleFont = Result
- GetFontSize
- TitleFontSize = Result
-
- /* read in the sorted font list */
- If Open( List, "T:WwFontList", R ) Then Do
- Do While ~EOF( List )
- Line = ReadLn( List )
- Parse Var Line FontName "," .
- If FontName ~= "" Then Do
- Font NAME TitleFont SIZE TitleFontSize
- Text FontName
- Text ' 12'
-
- NewParagraph
-
- Font NAME FontName SIZE 12
- Text 'ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789'
-
- NewParagraph
- NewParagraph
- End
- End
- Close( List )
- End
-
- ------ Snip Here ------
-
- ---------------------------------------------------------------------
- Ben Rogers, B.Sc. (Hons) / Amiga 1200-40MHz-030 / Mail for
- ben@alien.co.uk / MMU-6Mb-240HD / PGP Key
- http://www.alien.co.uk/~bdr / Amiga 500-7MHz-000 /
- ---------------------------------------------------------------------
-
-